<?php
class ManageBadwordForm extends Form{
	function ManageBadwordForm(){
		CGlobal::$website_title="Quản trị Badwords";
		Form::Form('ManageBadwordForm');
	}
	function on_submit(){
		DB::query('UPDATE configs SET conf_val = "'.Url::get('conf_val').'" WHERE conf_key="badwords"');
		AZLib::get_config(1);
		Url::redirect_current();	
	}	
	function draw(){	
		$this->beginForm();
		global $display;
		$row = DB::select('configs','conf_key="badwords"');
		$display->add('content',$row['conf_val']);
		$display->output('list');
		$this->endForm();
	}
}
?>